package com.mimc.framework.utils;

import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

import java.util.List;

public class RecordUtil {
    public static Page<Record> setIdtoStr(Page<Record> page){
        List<Record> list=page.getList();
        for (int i=0;i<list.size();i++){
            Record record=list.get(i);
            record.set("idStr",record.get("id").toString());
        }
        return page;
    }
}
